/*交易信息模块接口*/
import request from "@/utils/request";

//根据帖子id删除帖子
export function getAllDeals(data){
    return request({
        url:'/Deal/getAllDeals',
        method:'post',
        data
    })
}

//完成交易
export function finishDealByBuyer(data){
    return request({
        url:'/Deal/finishDealByBuyer',
        method:'post',
        data
    })
}

//取消交易
export function cancelDeal(data){
    return request({
        url:'/Deal/cancelDeal',
        method:'post',
        data
    })
}
